package com.zkingsoft.web.htmlCompiltJsp;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;

import com.alibaba.fastjson.JSONObject;

public class Config {

	public static JSONObject PARAM;
	
	 static{
		
		FileInputStream in = null;
		try {
			in = new FileInputStream(new File(
					"/Users/helius/code/companySite/src/main/java/com/zkingsoft/web/htmlCompiltJsp/config.json"));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
		byte[] b = new byte[1024];
		int length = 0;
		StringBuffer sb = new StringBuffer();
		try {
			while ((length = in.read(b)) > 0) {
				sb.append(new String(b, 0, length));
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
		PARAM= JSONObject.parseObject(sb.toString());
	}
}
